/* Copyright 2021 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

html:not(body) {
  /* Google colors used in UI. */
  --google-blue-50: rgb(232, 240, 254);
  --google-blue-300-rgb: 138, 180, 248;
  --google-blue-300: rgb(var(--google-blue-300-rgb));
  --google-blue-600: rgb(26, 115, 232);

  --google-grey-200: rgb(232, 234, 237);
  --google-grey-500: rgb(154, 160, 166);
  --google-grey-700: rgb(95, 99, 104);
  --google-grey-900-rgb: 32, 33, 36;
  --google-grey-900: rgb(var(--google-grey-900-rgb));

  --google-red-300: rgb(242, 139, 130);
  --google-red-600: rgb(217, 48, 37);

  /* Feedback specific variables. */
  --feedback-alert-color: var(--google-red-600);
  --feedback-bg-color: rgb(255, 255, 255);
  --feedback-box-shadow-color: #d0d0d0;
  --feedback-highlight-color: var(--google-blue-50);
  --feedback-link-color: var(--google-blue-600);
  --feedback-primary-color: var(--google-grey-900);
  --feedback-prominent-color: var(--google-blue-600);
  --feedback-secondary-color: var(--google-grey-700);
  --feedback-separator-color: rgba(0, 0, 0, 0.14);
}

@media (prefers-color-scheme: dark) {
  html:not(body) {
    --feedback-alert-color: var(--google-red-300);
    --feedback-bg-color: var(--google-grey-900);
    --feedback-box-shadow-color: rgba(var(--google-grey-900-rgb), 0.04);
    --feedback-highlight-color: rgba(var(--google-blue-300-rgb), 0.3);
    --feedback-link-color: var(--google-blue-300);
    --feedback-primary-color: var(--google-grey-200);
    --feedback-prominent-color: var(--google-blue-300);
    --feedback-secondary-color: var(--google-grey-500);
    --feedback-separator-color: rgba(255, 255, 255, 0.14);
  }
}
